const Path = require('path');
const Fs = require('fs');
exports.template = Fs.readFileSync(Path.join(__dirname, 'index.html'), 'utf-8');

exports.$ = {
    text: '#text'
}

exports.methods = {
    onReceiveData (data) {
        this.$.text.innerText = data.toString();
    }
}

